package com.liwy3.elasticsearch.doc;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * Copyright © 2022年09月19日 北京自如信息科技有限公司. All rights reserved.
 *
 * @Prject: liwy3
 * @Package: com.liwy3.elasticsearch.doc
 * @Description:
 * @author: Crazy4J
 * @date: 2022年09月19日 21:12
 * @version: V1.0
 */
@Data
@Document(indexName = "product_info", shards = 3, replicas = 1, refreshInterval = "30s")
public class ProductInfo {

    @Field(type = FieldType.Keyword)
    private String productName;
    @Field(type = FieldType.Keyword)
    private String annualRate;
    @Field(type = FieldType.Text, searchAnalyzer = "ik_max_word", analyzer = "ik_smart")
    private String describe;
}
